/*DATASET: Höhne, J.K. & Goerres, A. (2023; accepted). Question Order Effects: How Robust are Survey Measures on Political Solidarities with Reference to Germany and Europe? International Journal of Social Research Methodology*/


***************************************
*SAMPLE AND EXPERIMENTAL DESIGN CHAPTER
***************************************

*summary statistics for sociodemographic variables
sum age
tab gender
tab edu

*experimental groups
tab group

*checking for differences between experimental groups
ttest age, by(group)
tab group gender, row chi
tab group edu, row chi


****************************
*RESEARCH QUESTION 1 CHAPTER
****************************

*response distribution germany 1st (condition 1)
tab solid_ger if group == 1
*response distribution europe 2nd (condition 1)
tab solid_eur if group == 1
*response distribution europe 1st (condition 2)
tab solid_eur if group == 2
*response distribution germany 2nd (condition 2)
tab solid_ger if group == 2

*chi-square test distribution question order germany
tab solid_ger group, col chi

*chi-square test distribution question order europe
tab solid_eur group, col chi


****************************
*RESEARCH QUESTION 2 CHAPTER
****************************

*median response time germany 1st (condition 1)
sum rt_solid_ger if group == 1, d
*median response time europe 2nd (condition 1)
sum rt_solid_eur if group == 1, d
*median response time europe 1st (condition 2)
sum rt_solid_eur if group == 2, d
*median response time germany 2nd (condition 2)
sum rt_solid_ger if group == 2, d

*median overall response time condition 1
sum rt_solid_overall if group == 1, d

*median overall response time condition 2
sum rt_solid_overall if group == 2, d

*median test for comparison of overall response time
median rt_solid_overall, by(group) exact
